package org.durcframework.rms.controller;

import org.durcframework.core.controller.CrudController;
import org.durcframework.rms.entity.RRolePermission;
import org.durcframework.rms.service.RRolePermissionService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class RRolePermissionController extends CrudController<RRolePermission, RRolePermissionService> {

	@RequestMapping("listRolePermissionSfId.do")
	public @ResponseBody Object listRolePermissionSfId(int sfId) {
		return this.getService().getRolePermissionBySfId(sfId);
	}
}
